<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class TWaterPipeline extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('t_water_pipeline', function (Blueprint $table) {
             $table->engine = 'InnoDB';
             $table->charset = 'utf8mb4';
             $table->collation = 'utf8mb4_unicode_ci';
            // CONTENT
            $table->increments('id')->nullable(false)->comment('');
			$table->integer('site_id')->nullable()->default(0)->comment('站点编号');
			$table->integer('company_id')->nullable(false)->default(0)->comment('项目编号');
			$table->text('content')->nullable()->comment('管线数据');
			$table->text('pipedot')->nullable()->comment('监测点');
			$table->text('pipepa')->nullable()->comment('加压站');
			$table->text('pipejing')->nullable()->comment('阀门井');
			$table->text('water')->nullable()->comment('供水范围');
			$table->timestamp('created_at')->nullable()->comment('');
			$table->timestamp('updated_at')->nullable()->comment('');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('t_water_pipeline');
    }
}
